package com.ruoyi.system.service;

/**
 * @Version 1.0
 * @ClassName: ProductService
 * @Description:
 * @Author 邓贤文
 * @Date: 2022/4/20 9:40
 */
public interface ProductService {
    /**
     * 扣减库存
     *
     * @param productId 商品 ID
     * @param amount 扣减数量
     * @return 商品总价
     */
    Double reduceStock(Long productId, Integer amount);
}
